﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.MeetingRoom
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.MeetingRoom;
    
    /// <summary>
    /// 会议室
    /// </summary>
    public class MapForMeetingRoom : EntityMapping<MeetingRoom>
    {
        public MapForMeetingRoom()
        {
            Property(x => x.Code, map =>
            {
                map.Length(40);
            });

            Property(x => x.Name, map =>
            {
                map.Length(400);
            });

            Property(x => x.OrderFlag, map =>
            {

            });

            Property(x => x.Remark, map =>
            {
                map.Length(100000);
            });
        }
    }
}
